package com.lw.common.vo;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import lombok.Data;

import java.util.List;

@Data
public class MenuVo {
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Integer id;

    private Integer parentId;

    private String name;

    private String type;


    private String path;


    private String component;


    private boolean sort;


    private boolean visible;


    private String icon;


    private String redirect;


    private String perm;

    @Column(ignore = false)
    MenuMeta meta;

    @Column(ignore = false)
    private List<MenuVo> children; // 存储子菜单
}
